package com.uidt.project.ptsj.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.uidt.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uidt.framework.aspectj.lang.annotation.Excel;

/**
 * 巡检问题记录对象 ptsj_problem
 *
 * @author uidt
 * @date 2024-08-13
 */
public class Problem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 巡检编号 */
    @Excel(name = "巡检编号")
    private Long inspectionId;

    /** 问题类型 */
    @Excel(name = "问题类型")
    private String problemType;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String problemContent;

    /** 挂牌状态;0 待挂牌 1已挂牌 */
    @Excel(name = "挂牌状态;0 待挂牌 1已挂牌")
    private String cardStatus;

    /** 删除标记 */
    private String delFlag;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:SS")
    private Date createdTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }
    public void setProblemType(String problemType)
    {
        this.problemType = problemType;
    }

    public String getProblemType()
    {
        return problemType;
    }
    public void setProblemContent(String problemContent)
    {
        this.problemContent = problemContent;
    }

    public String getProblemContent()
    {
        return problemContent;
    }
    public void setCardStatus(String cardStatus)
    {
        this.cardStatus = cardStatus;
    }

    public String getCardStatus()
    {
        return cardStatus;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("inspectionId", getInspectionId())
                .append("problemType", getProblemType())
                .append("problemContent", getProblemContent())
                .append("remark", getRemark())
                .append("cardStatus", getCardStatus())
                .append("delFlag", getDelFlag())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
